package com.example.demo.model;/*
 * Copyright © 2020-2035 erupt.xyz All rights reserved.
 * Author: YuePeng (erupts@126.com)
 */

import javax.persistence.*;
import xyz.erupt.annotation.*;
import xyz.erupt.annotation.sub_erupt.*;
import xyz.erupt.annotation.sub_field.*;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.upms.model.base.HyperModel;
import xyz.erupt.jpa.model.BaseModel;
import java.util.Set;
import java.util.Date;

@Erupt(name = "学生信息")
@Table(name = "student_info")
@Entity
public class Studentinfo extends BaseModel {

        @EruptField(
                views = @View(
                        title = "学号"
                ),
                edit = @Edit(
                        title = "学号",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String student_id;

        @EruptField(
                views = @View(
                        title = "姓名"
                ),
                edit = @Edit(
                        title = "姓名",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String student_name;

        @EruptField(
                views = @View(
                        title = "生日"
                ),
                edit = @Edit(
                        title = "生日",
                        type = EditType.DATE, search = @Search, notNull = true,
                        dateType = @DateType
                )
        )
        private Date student_birthday;

        public String getStudent_id() {
                return student_id;
        }

        public void setStudent_id(String student_id) {
                this.student_id = student_id;
        }

        public String getStudent_name() {
                return student_name;
        }

        public void setStudent_name(String student_name) {
                this.student_name = student_name;
        }

        public Date getStudent_birthday() {
                return student_birthday;
        }

        public void setStudent_birthday(Date student_birthday) {
                this.student_birthday = student_birthday;
        }
}